package org.jeecg.modules.rental.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Description: 中控设备
 * @Author: sean
 * @Date:   2024-10-17
 * @Version: V1.0
 */
@Data
@TableName("equ_terminal")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="equ_terminal对象", description="中控设备")
public class EquTerminal implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
	/**终端id（中控注册的id）*/
	@Excel(name = "终端id（中控注册的id）", width = 15)
    @ApiModelProperty(value = "终端id（中控注册的id）")
    private String terminalId;
	/**终端类型（中控注册信息）*/
	@Excel(name = "终端类型（中控注册信息）", width = 15)
    @ApiModelProperty(value = "终端类型（中控注册信息）")
    private String terminalType;
	/**中控imei*/
	@Excel(name = "中控imei", width = 15)
    @ApiModelProperty(value = "中控imei")
    private String terminalImei;
	/**中控sn(原来手机号)*/
	@Excel(name = "中控sn(原来手机号)", width = 15)
    @ApiModelProperty(value = "中控sn(原来手机号)")
    private String terminalSn;
	/**制造商（中控注册信息）*/
	@Excel(name = "制造商（中控注册信息）", width = 15)
    @ApiModelProperty(value = "制造商（中控注册信息）")
    private String producer;
	/**车辆标识/（终端是车牌）/车辆编号（中控注册信息）*/
	@Excel(name = "车辆标识/（终端是车牌）/车辆编号（中控注册信息）", width = 15)
    @ApiModelProperty(value = "车辆标识/（终端是车牌）/车辆编号（中控注册信息）")
    private String plateNum;
	/**车牌颜色（中控注册信息）*/
	@Excel(name = "车牌颜色（中控注册信息）", width = 15)
    @ApiModelProperty(value = "车牌颜色（中控注册信息）")
    private String plateColor;
	/**省id（中控注册信息）*/
	@Excel(name = "省id（中控注册信息）", width = 15)
    @ApiModelProperty(value = "省id（中控注册信息）")
    private String provinceId;
	/**城市id（中控注册信息）*/
	@Excel(name = "城市id（中控注册信息）", width = 15)
    @ApiModelProperty(value = "城市id（中控注册信息）")
    private String cityId;
	/**蓝牙识别码*/
	@Excel(name = "蓝牙识别码", width = 15)
    @ApiModelProperty(value = "蓝牙识别码")
    private String blueCode;
	/**蓝牙秘钥*/
	@Excel(name = "蓝牙秘钥", width = 15)
    @ApiModelProperty(value = "蓝牙秘钥")
    private String blueKey;
	/**控制器数据*/
	@Excel(name = "控制器数据", width = 15)
    @ApiModelProperty(value = "控制器数据")
    private String controlJson;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    @TableField(exist = false)
    private String ScopeName;
	/**创建日期*/
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd  HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private LocalDateTime createTime;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**更新日期*/
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd  HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private LocalDateTime updateTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**是否删除（0：否、1：是）*/
	@Excel(name = "是否删除（0：否、1：是）", width = 15)
    @ApiModelProperty(value = "是否删除（0：否、1：是）")
    @TableLogic(value="0", delval = "1")
    private String isDelete;

    @TableField(exist = false)
    private String onlineStatus;
}
